# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=pastemonitor
pkgver=12.bc5d326
pkgrel=1
pkgdesc='Scrape Pastebin API to collect daily pastes, setup a wordlist and be alerted by email when you have a match..'
groups=('blackarch' 'blackarch-recon' 'blackarch-automation' 'blackarch-misc')
arch=('any')
url='https://github.com/pixelbubble/PasteMonitor'
license=('MIT')
depends=('python' 'python-requests')
makedepends=('git')
source=("$pkgname::git+https://github.com/pixelbubble/PasteMonitor.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -Dm 755 "$pkgname.py" "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
}

